const Router = require('@koa/router')
const { server } = require('../env')
const { verifyQuestion } = require('../middleware/question.middleware')
const questionController = require('../controller/question.controller')

const questionRouter = new Router({ prefix: `${server.pathPrefix}/question` })

questionRouter.get('/', verifyQuestion, questionController.question) // 常见问题

module.exports = questionRouter